<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>
    <script>
        // var a = [1, 2, 3];
        // var b = a;
        // b.push(4);
        // alert(a);
        
        var age = 21;
        let obj = {
            friend: {
                age: 20,
                name: this.age,
                showAge() {
                    console.log(this.age);
                }
            }, 
            showAge() {
                    console.log(this.age);
            } , 
            age: 32,
        }

        console.log(obj.showAge());





        var arr = [
            function () {
                console.log("我被调用了 ！");
                return this.toString()
            }
        ]
        console.log(arr[0]());


        // console.log([this.toString()]);


    </script>
</body>

</html>